﻿#ifndef WIDGETTOILIST_H
#define WIDGETTOILIST_H

#include <QListView>
#include <QPushButton>

class WidgetRoiList : public QListView
{
    Q_OBJECT
public:
    explicit WidgetRoiList(QWidget *parent = nullptr);

signals:
    void sigRoiAdd();
    void sigRoiRemove();
    void sigRoiClear();
private:
    QMenu* mMenu;//右键菜单
    QPushButton* pbtnAdd;
    QPushButton* pbtnRemove;
    QPushButton* pbtnClear;
    virtual void mousePressEvent(QMouseEvent* e) override;
};

#endif // WIDGETTOILIST_H
